home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 114 / PC Guia 114.iso / Software / Utils / The Gimp 2.2.1 / gimp-help-2-0.6-setup.exe / {app} / share / gimp / 2.0 / help / en / ch02s04s11.html < prev    next >
Encoding:
Extensible Markup Language  |  2004-12-19  |  9.3 KB  |  221 lines

  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4.   <head>
  5.     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  6.     <title>4.11.┬áPalettes</title>
  7.     <link rel="stylesheet" href="gimp-help-plain.css" type="text/css" />
  8.     <link rel="stylesheet" href="gimp-help-screen.css" type="text/css" />
  9.     <meta name="generator" content="DocBook XSL Stylesheets V1.66.1" />
  10.     <link rel="start" href="index.html" title="GIMP User Manual" />
  11.     <link rel="up" href="ch02s04.html" title="4.┬áWorking with Images" />
  12.     <link rel="prev" href="ch02s04s10.html" title="4.10.┬áPatterns" />
  13.     <link rel="next" href="ch02s04s12.html" title="4.12.┬áText and Fonts" />
  14.   </head>
  15.   <body>
  16.     <div xmlns="" class="navheader">
  17.       <table width="100%" summary="Navigation header">
  18.         <tr>
  19.           <th colspan="3" align="center" id="chaptername">4.┬áWorking with Images</th>
  20.         </tr>
  21.         <tr>
  22.           <td width="20%" align="left"><a accesskey="p" href="ch02s04s10.html">Prev</a>┬á</td>
  23.           <th width="60%" align="center" id="sectionname">4.11.┬áPalettes</th>
  24.           <td width="20%" align="right">┬á<a accesskey="n" href="ch02s04s12.html">Next</a></td>
  25.         </tr>
  26.       </table>
  27.       <hr />
  28.     </div>
  29.     <div class="sect2" lang="en" xml:lang="en">
  30.       <div class="titlepage">
  31.         <div>
  32.           <div>
  33.             <h3 class="title"><a id="gimp-palettes"></a>4.11.┬áPalettes</h3>
  34.           </div>
  35.         </div>
  36.       </div>
  37.       <p>
  38.     A <span class="emphasis"><em>palette</em></span> is a set of discrete
  39.     colors.  In GIMP, palettes are used mainly for two purposes:
  40.   </p>
  41.       <div class="itemizedlist">
  42.         <ul type="disc">
  43.           <li>
  44.             <p>
  45.         They allow you to paint with a selected set of colors, in the
  46.         same way an oil painter works with colors from a limited
  47.         number of tubes.
  48.       </p>
  49.           </li>
  50.           <li>
  51.             <p>
  52.         They form the colormaps of indexed images.  An indexed image
  53.         can use a maximum of 256 different colors, but these can be
  54.         any colors.  The colormap of an indexed image is called an
  55.         "indexed palette" in GIMP.
  56.       </p>
  57.           </li>
  58.         </ul>
  59.       </div>
  60.       <p>
  61.     Actually neither of these functions fall very much into the
  62.     mainstream of GIMP usage:  it is possible to do rather
  63.     sophisticated things in GIMP without every dealing with palettes.
  64.     Still, they are something that an advanced user should understand,
  65.     and even a less advanced user may need to think about them in
  66.     some situations, as for example when working with GIF files.
  67.   </p>
  68.       <div class="informalfigure">
  69.         <div class="mediaobject">
  70.           <img src="../images/dialogs/dialogs-palettes.png" />
  71.           <div class="caption">
  72.             <p>
  73.       The Palettes dialog
  74.     </p>
  75.           </div>
  76.         </div>
  77.       </div>
  78.       <p>
  79.     When you install GIMP, it comes supplied with several dozen
  80.     predefined palettes, and you can also create new ones.  Some of
  81.     the predefined palettes are commonly useful, such as the "Web"
  82.     palette, which contains the set of colors considered "web safe";
  83.     many of the palettes seem to have been chosen more or less
  84.     whimsically.  You can access all of the available palettes using
  85.     the <a href="ch04s13.html" title="13.┬áPalettes">Palettes dialog</a>.
  86.     This is also the starting point if you want to create a new
  87.     palette. 
  88.   </p>
  89.       <div class="informalfigure">
  90.         <div class="mediaobject">
  91.           <img src="../images/dialogs/dialogs-palette-editor.png" />
  92.           <div class="caption">
  93.             <p>
  94.           The Palette Editor
  95.         </p>
  96.           </div>
  97.         </div>
  98.       </div>
  99.       <p>
  100.     Double-clicking on a palette in the Palettes dialog brings up the
  101.     <a href="ch04s13s03.html" title="13.3.┬áPalette Editor">Palette Editor</a>, showing
  102.     the colors from the palette you clicked 
  103.     on.  You can use this to paint with the palette:  clicking on a
  104.     color sets GIMP's foreground to that color, as shown in the Color
  105.     Area of the Toolbox.  Holding down the Ctrl key while clicking, on
  106.     the other hand, sets GIMP's background color to the color you
  107.     click on.   
  108.   </p>
  109.       <p>
  110.     You can also, as the name implies, use the Palette Editor to
  111.     change the colors in a palette, so long as it is a palette that
  112.     you have created yourself.  You cannot edit the palettes that are
  113.     supplied with GIMP; however you can duplicate them and then edit
  114.     the copies.
  115.   </p>
  116.       <p>
  117.     When you create palettes using the Palette Editor, they are
  118.     automatically saved as soon as you exit GIMP, in the
  119.     <tt class="filename">palettes</tt> folder of your personal GIMP
  120.     directory.  Any palette files in this directory, or in the system
  121.     <tt class="filename">palettes</tt> directory created when GIMP is
  122.     installed, are automatically loaded and shown in the Palettes
  123.     dialog the next time you start GIMP.  You can also add other
  124.     folders to the palette search path using the <a href="ch04s18s16.html" title="18.16.┬áData Folders">Palette Folders</a> page of
  125.     the Preferences dialog.
  126.   </p>
  127.       <p>
  128.     GIMP palettes are stored using a special file format, in files
  129.     with the extension <tt class="filename">.gpl</tt>.  It is a very simple
  130.     format, and they are ASCII files, so if you happen to obtain
  131.     palettes from another source, and would like to use them in GIMP,
  132.     it probably won't be very hard to convert them:  just take a look
  133.     at any <tt class="filename">.gpl</tt> and you will see what to do.
  134.   </p>
  135.       <div class="simplesect" lang="en" xml:lang="en">
  136.         <div class="titlepage">
  137.           <div>
  138.             <div>
  139.               <h4 class="title"><a id="id3425449"></a>Colormap</h4>
  140.             </div>
  141.           </div>
  142.         </div>
  143.         <p>
  144.       Confusingly, GIMP makes use of two types of palettes.  The more
  145.       noticeable are the type shown in the Palettes dialog:  palettes
  146.       that exist independently of any image.  The second type,
  147.       <span class="emphasis"><em>indexed palettes</em></span>, form the colormaps of
  148.       indexed images.  Each indexed image has its own private indexed
  149.       palette, defining the set of colors available in the image:  the
  150.       maximum number of colors allowed in an indexed palette is 256.
  151.       These palettes are called "indexed" because each color is
  152.       associated with an index number.  (Actually, the colors in
  153.       ordinary palettes are numbered as well, but the numbers have no
  154.       functional significance.)
  155.     </p>
  156.         <div class="informalfigure">
  157.           <div class="mediaobject">
  158.             <img src="../images/dialogs/dialogs-indexed-palette.png" />
  159.             <div class="caption">
  160.               <p>
  161.           The Colormap dialog
  162.           </p>
  163.             </div>
  164.           </div>
  165.         </div>
  166.         <p>
  167.       The colormap of an indexed image is shown in the <a href="ch04s05.html" title="5.┬áIndexed Palette dialog">Indexed Palette
  168.       dialog</a>, which should not be confused with the Palettes
  169.       dialog.  The Palettes dialog shows a list of all of the palettes
  170.       available; the Indexed Palette dialog shows the colormap of the
  171.       currently active image, if it is an indexed image---otherwise it
  172.       shows nothing.
  173.     </p>
  174.         <p>
  175.       You can, however, create an ordinary palette from the colors in
  176.       an indexed image---actually from the colors in any image.  To do
  177.       this, choose "Import Palette" from the right-click popup menu in
  178.       the Palettes dialog:  this pops up a dialog that gives you
  179.       several options, including the option to import the palette from
  180.       an image.  (You can also import any of GIMP's gradients as a
  181.       palette.)  This possibility becomes important if you want to
  182.       create a set of indexed images that all use the same set of
  183.       colors. 
  184.     </p>
  185.         <p>
  186.       When you convert an image into indexed mode, a major part of the
  187.       process is the creation of an indexed palette for the image.
  188.       How this happens is described in detail in ??.  Briefly, you
  189.       have several methods to choose from, one of which is to use a
  190.       specified palette from the Palettes dialog.
  191.     </p>
  192.         <p>
  193.       Thus, to sum up the foregoing, ordinary palettes can be turned
  194.       into indexed palettes when you convert an image into indexed
  195.       mode; indexed palettes can be turned into ordinary palettes by
  196.       importing them into the Palettes dialog.
  197.     </p>
  198.       </div>
  199.     </div>
  200.     <div class="navfooter">
  201.       <hr />
  202.       <table width="100%" summary="Navigation footer">
  203.         <tr>
  204.           <td width="40%" align="left"><a accesskey="p" href="ch02s04s10.html">Prev</a>┬á</td>
  205.           <td width="20%" align="center">
  206.             <a accesskey="u" href="ch02s04.html">Up</a>
  207.           </td>
  208.           <td width="40%" align="right">┬á<a accesskey="n" href="ch02s04s12.html">Next</a></td>
  209.         </tr>
  210.         <tr>
  211.           <td width="40%" align="left" valign="top">4.10.┬áPatterns┬á</td>
  212.           <td width="20%" align="center">
  213.             <a accesskey="h" href="index.html">Home</a>
  214.           </td>
  215.           <td width="40%" align="right" valign="top">┬á4.12.┬áText and Fonts</td>
  216.         </tr>
  217.       </table>
  218.     </div>
  219.   </body>
  220. </html>
  221.